using System.Drawing;
using System.Xml;

namespace ColladaDotNet.ContentPipeline
{
	public class PipelineContext
	{
		public COLLADA Load(string fileName)
		{
			return COLLADA.Load(fileName);
		}
		public XmlWriter CreateXml(string fileName)
		{
			return XmlWriter.Create(fileName);
		}
		public Bitmap Render(COLLADA scene, int w, int h, double time)
		{
			Bitmap res;
			using (var r = new Renderer(w,h))
			{
				r.Render(scene,time);
				res = r.GetBitmap();
			}
			return res;
		}
	}
}